package com.zhongxing.hdy.spritel_hdy.view;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.zhongxing.hdy.spritel_hdy.R;
import com.zhongxing.hdy.spritel_hdy.util.AnimUtil;

/**
 * Created by Administrator on 2017/7/2 0002.
 */

public class BackpackView extends BaseView{
    private Dialog dialog;
    private ImageView iv_close;

    public BackpackView(Context context) {
        super(context);
        setContentView(R.layout.view_backpack);


    }

    @Override
    protected void initUI() {
        iv_close = (ImageView) findViewById(R.id.iv_close);

        AnimUtil.addOnTouchListener(iv_close, 0.5f, 0.5f, new AnimUtil.AnimListener() {
            @Override
            public void down(View view) {

            }

            @Override
            public void move(View view) {

            }

            @Override
            public void up(View view) {
                dialog.dismiss();
            }
        });
    }

}
